﻿using Domain.Base;
using Domain.Entity;
using DtoFw.Enum;
using Repository.Base;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;
using Util;

namespace Repository
{
    ///<summary>
    ///案件
    ///</summary>
    [SugarTable("tb_dbbak")]
    [DB(EnumDatabase.Mysql, Cache = false)]
    public class DbbakRepository : BaseRepository<DbbakEntity>
    {
        private readonly SnowFlakeGenerator worker;
        public DbbakRepository(SnowFlakeGenerator snowFlakeGenerator) : base(snowFlakeGenerator)
        {
            this.worker = snowFlakeGenerator;
        }

        public bool Update(DbbakEntity inf)
        {
            return base.GetDb().Updateable(inf).ExecuteCommand() > 0;
        }

    }
}
